﻿using System.Diagnostics;

namespace AnimationPackerEngine
{
    public static class SpritePackerErrors
    {
        public enum ErrorCodes
        {
            Success,
            FailedToPackImage,
            FailedToSaveImage,
        };

        public static string Stringize(ErrorCodes errorCode)
        {
            switch (errorCode)
            {
                case ErrorCodes.Success:
                    return "Success!";

                case ErrorCodes.FailedToPackImage:
                    return "Failed to pack at least one image.";

                case ErrorCodes.FailedToSaveImage:
                    return "Failed to save output sprite atlas.";

                default:
                    Debug.Fail("Unknown error code.");
                    return "Unknown error code.";
            }
        }
    }
}